package personal.xjl.plusdemo.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import personal.xjl.plusdemo.domain.Student;
import personal.xjl.plusdemo.service.StudentService;
import personal.xjl.plusdemo.mapper.StudentMapper;
import org.springframework.stereotype.Service;

/**
* @author kgy
* @description 针对表【student】的数据库操作Service实现
* @createDate 2024-12-03 11:15:46
*/
@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student>
    implements StudentService{
    @Autowired
    private  StudentMapper studentMapper;

    @Override
    public boolean login(String name, String password) {
        return !studentMapper.login(name,password).isEmpty();
    }
}




